<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8"/>
    <title>劲松商城后台</title>
    <div th:include="Admin/public/Common::head"></div>
    <script type="text/javascript">
        $(function (){
        })
    </script>
</head>
<body>
<div class="main-wrap">
    <div th:include="Admin/public/Common::menu"></div>
    <div class="content-wrap">
        <div th:replace="Admin/public/Common::header"></div>
        <main class="main-cont content mCustomScrollbar">
            <div class="page-wrap">
                <!--开始::内容-->
                <section class="page-hd">
                    <header>
                        <h2 class="title"><i class="fa  fa-address-book ">&nbsp;</i>用户管理</h2>
                    </header>
                    <hr>
                </section>
                <table class="table table-bordered table-striped table-hover">
                    <thead>
                    <tr>
                        <th>管理员id</th>
                        <th>用户名</th>
                        <th>昵称</th>
                        <th>管理员权限</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="cen" th:each="adnin:${list}">
                        <td th:text="${adnin.id}"></td>
                        <td><a href="#" th:text="${adnin.username}" style="color: #2E9EFE"></a></td>
                        <td th:text="${adnin.nickname}"></td>
                        <td th:if="${adnin.status==1}" th:text="超级管理员" style="color: green"></td>
                        <td th:if="${adnin.status==0}" th:text="普通管理员" style="color: red"></td>
                        <td>
                            <button th:if="${adnin.status}==1" class="btn btn-info-outline radius size-l fengying" th:id="${adnin.id}">降低权限</button>
                            <button th:if="${adnin.status}==0"class="btn btn-danger-outline radius size-xl jiefeng" th:id="${adnin.id}">升级权限</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
        <div th:replace="Admin/public/Common::footer"></div>
    </div>
</div>
</body>
</html>
